package cn.example.web.module.server;

import cn.example.web.annotation.IController;
import cn.example.web.base.AbstractController;
import cn.example.web.db.bean.Server;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@IController("server")
public class ServerController extends AbstractController {
	@Autowired
	private ServerService serverService;
	
	public void list() {
		List<Server> servers = serverService.findAll();
		renderSuccess(servers);
	}
}
